package demo1;

public class TestUSB {
    public static void main(String[] args) {
        Computer computer=new Computer();
        computer.open();
        computer.useDevice(new Mouse());
        computer.useDevice(new KeyBoard());
        computer.close();
    }
}
